import java.util.Scanner;

public class ZouYeSi {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入一个五位数");
        int a=input.nextInt();
        int b=a/10000%10,c=a/1000%10,d=a/100%10,e=a/10%10,f=a%10;
        int h=b+c+d+e+f;
        System.out.println("求和="+h);
    }
}
